<br />
<br />
<a href="/scaffold/ver/<?=$tabela?>">voltar</a><br /><br />
Adicionar dados para a nova entrada.<br /><br /><br />
<?
if(isset($conteudos))
{
	?>
  <!-- Form Header HTML Render -->
   <FORM method="post">
	<?
	$i = 0;
	foreach($conteudos['colunas'] as $campo)
	{
		echo "<LABEL for='". $campo->Field . "'>" . $campo->Field . ": </LABEL>";
		if($campo->Extra == "auto_increment"  )
		{
			echo "<INPUT type='text' value='" . $conteudos['data'][$i] . "' disabled='disabled'></INPUT><br /><br />";
			echo "<INPUT type='hidden' name='". $campo->Field . "' id='" . $campo->Field . "' value='" . $conteudos['data'][$i] . "' ></INPUT>";
		}
		else
		{
			if($campo->Type == "TINYTEXT")
			{
				echo "tinytext";
			}  else {
				echo "<INPUT type='text' id='" . $campo->Field . "' name='". $campo->Field . "' value='" . $conteudos['data'][$i] .
					"'></INPUT><br /><br />";
			}
		}
		$i++;
	}
	?>
	<!-- Form Footer HTML Render -->
	<p />
	<div id="btns">
     <INPUT class="post" type="submit" value="Actualizar"> <INPUT class="reset" type="reset" value="LIMPAR">
	</div>
   </FORM>
	<?
}
?>